package com.zb.api.common.models;

import lombok.Data;

@Data
public class Result  <T>  {

    private String msg;
    private Boolean succeed;
    private T data;
    private String code;
    private String requestId;

    public Result() {

    }


    public Result(String message, T data) {
        this.succeed = true;
        this.code = "200";
        this.msg = message;
        this.data = data;
    }

    public Result(String message) {
        this.succeed = true;
        this.code = "500";
        this.msg = message;
        this.data = null;
    }

}
